package com.bocloud.kong.model.configs;

import com.bocloud.kong.model.BaseModel;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * Title: OAuth2 Description:
 *
 * @author lkx
 * @version 1.0.0
 * @since 2017-02-15 17:51
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class OAuth2Config extends BaseModel {
	private static final long serialVersionUID = -2469455037787198356L;

	private String[] scopes;

	private Boolean mandatory_scope;

	private Integer token_expiration;

	private Boolean enable_authorization_code;

	private Boolean enable_client_credentials;

	private Boolean enable_implicit_grant;

	private Boolean enable_password_grant;

	private Boolean hide_credentials;

	private Boolean accept_http_if_already_terminated;

	private String provision_key;

	public String[] getScopes() {
		return scopes;
	}

	public void setScopes(String[] scopes) {
		this.scopes = scopes;
	}

	public Boolean getMandatory_scope() {
		return mandatory_scope;
	}

	public void setMandatory_scope(Boolean mandatory_scope) {
		this.mandatory_scope = mandatory_scope;
	}

	public Integer getToken_expiration() {
		return token_expiration;
	}

	public void setToken_expiration(Integer token_expiration) {
		this.token_expiration = token_expiration;
	}

	public Boolean getEnable_authorization_code() {
		return enable_authorization_code;
	}

	public void setEnable_authorization_code(Boolean enable_authorization_code) {
		this.enable_authorization_code = enable_authorization_code;
	}

	public Boolean getEnable_client_credentials() {
		return enable_client_credentials;
	}

	public void setEnable_client_credentials(Boolean enable_client_credentials) {
		this.enable_client_credentials = enable_client_credentials;
	}

	public Boolean getEnable_implicit_grant() {
		return enable_implicit_grant;
	}

	public void setEnable_implicit_grant(Boolean enable_implicit_grant) {
		this.enable_implicit_grant = enable_implicit_grant;
	}

	public Boolean getEnable_password_grant() {
		return enable_password_grant;
	}

	public void setEnable_password_grant(Boolean enable_password_grant) {
		this.enable_password_grant = enable_password_grant;
	}

	public Boolean getHide_credentials() {
		return hide_credentials;
	}

	public void setHide_credentials(Boolean hide_credentials) {
		this.hide_credentials = hide_credentials;
	}

	public Boolean getAccept_http_if_already_terminated() {
		return accept_http_if_already_terminated;
	}

	public void setAccept_http_if_already_terminated(Boolean accept_http_if_already_terminated) {
		this.accept_http_if_already_terminated = accept_http_if_already_terminated;
	}

	public String getProvision_key() {
		return provision_key;
	}

	public void setProvision_key(String provision_key) {
		this.provision_key = provision_key;
	}

}
